diff --git a/swh/web/templates/includes/directory-display.html b/swh/web/templates/includes/directory-display.html index ca23558d..37949966 100644 --- a/swh/web/templates/includes/directory-display.html +++ b/swh/web/templates/includes/directory-display.html @@ -1,64 +1,63 @@ {% comment %} Copyright (C) 2017-2020 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% include "includes/revision-info.html" %} {% if snapshot_context and snapshot_context.is_empty %} {% include "includes/empty-snapshot.html" %} {% elif dirs|length > 0 or files|length > 0 %}
{% for d in dirs %} {% endfor %} {% for f in files %} {% endfor %}
File Mode Size
{{ d.name }} - {{ d.perms }}
{{ f.name }} {{ f.perms }} {{ f.length }}

{% elif "revision_found" in swh_object_metadata and swh_object_metadata.revision_found is False %} Revision {{ swh_object_metadata.revision }} could not be found in the archive.
Its associated directory can not be displayed. {% elif dirs|length == 0 and files|length == 0 %} Directory is empty {% endif %}